<div class="widget_wrap">
    <div class="widget_top">
        <span class="h_icon blocks_images"></span>
        <h6>Edicion de precios item # <?php echo $this->request->data['Comprasmedicamento']['id'] ?></h6>
    </div>
    <div class="widget_content">
        <?php echo $this->Form->create('Medicamento', array('action' => 'ajaxeditarcompra', 'id' => 'formregistrosintoma', 'class' => 'form_container left_label')); ?>
        <?php echo $this->Form->hidden('Comprasmedicamento.id', array('value' => $this->request->data['Comprasmedicamento']['id'])) ?>
        <?php echo $this->Form->hidden('Comprasmedicamento.medicamento_id', array('value' => $id)) ?>
        <ul>
            <li>
                <div class="form_grid_12">
                    <label class="field_title" for="username">Linea laboratorio</label>
                    <div class="form_input">
                        <select data-placeholder="Seleccione una linea labo..." class="chzn-select full" name="data[Comprasmedicamento][lineaslaboratorio_id]" tabindex="4" id="cb_dpto">
                            <option value=""></option>
                            <?php foreach ($lineaslaboratorios as $s): ?>
                                <?php if ($this->request->data['Comprasmedicamento']['lineaslaboratorio_id'] == $s['Lineaslaboratorio']['id']): ?>
                                    <option value="<?php echo $s['Lineaslaboratorio']['id'] ?>" selected="selected">
                                        <?php echo $s['Lineaslaboratorio']['nombre'] ?>
                                    </option>
                                <?php else: ?>

                                    <option value="<?php echo $s['Lineaslaboratorio']['id'] ?>">
                                        <?php echo $s['Lineaslaboratorio']['nombre'] ?>
                                    </option>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        </select>
                    </div>
                </div>
            </li>                    
            <li>
                <div class="form_grid_12">
                    <label class="field_title" for="password">Cantidad <span class="req">*</span></label>
                    <div class="form_input">
                        <?php echo $this->Form->text('Comprasmedicamento.cantidad', array('tabindex' => 1, 'class' => 'required mid')); ?>
                    </div>
                </div>
            </li>
            <li>
                <div class="form_grid_12">
                    <label class="field_title" for="password">Precio compra unitario <span class="req">*</span></label>
                    <div class="form_input">                                
                        <?php echo $this->Form->text('Comprasmedicamento.preciocompra', array('tabindex' => 1, 'class' => 'required mid')); ?>
                    </div>
                 </div>
            </li>
            <li>
                <div class="form_grid_12">
                <label class="field_title" for="password">Fecha compra <span class="req">*</span></label>
                    <div class="form_input">
                        <?php echo $this->Form->text('Comprasmedicamento.fechacompra', array('tabindex' => 1, 'class' => 'required mid')); ?>
                    </div>
                </div>
            </li>                        
            <li>
              <div class="form_grid_12">
                    <label class="field_title" for="password">Fecha expiracion <span class="req">*</span></label>
                `   <div class="form_input">
                     <?php echo $this->Form->text('Comprasmedicamento.fechavencimiento', array('tabindex' => 1, 'class' => 'required mid')); ?>
                    </div>
                </div>
            </li>
            <li>
                <div class="form_grid_12">
                    <label class="field_title" for="password">Stock minimo <span class="req">*</span></label>
                     <div class="form_input">
                         <?php echo $this->Form->text('Comprasmedicamento.stockminimo', array('tabindex' => 1, 'class' => 'required mid')); ?>
                     </div>
                 </div>
            </li>                   
            <li>
                <div class="form_grid_12">
                    <div class="form_input">
                        <button type="submit" class="btn_small btn_blue"><span>Guardar cambios</span></button>
                        </div>
                </div>
            </li>
        </ul>
        </form>
    </div>
</div>
